<?php
declare (strict_types=1);

namespace app\mall\model\address;

use app\common\model\BaseModel;
use think\model\concern\SoftDelete;

/**
 * 定义商品数据模型
 */
class Address extends BaseModel
{
    use SoftDelete;

    // 表名
    protected $name = 'mall_address';

    // 设置隐藏字段
    protected $hidden = ['create_time', 'update_time', 'delete_time'];

    public function getAreacodeAttr($value)
    {
        return explode(',', $value);
    }
}
